A simple way to calculate statistic for multiple variables using dplyr